package com.dcy.znoa.domain.publiz;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("park")
public class Park {//园区

    @TableId(type = IdType.AUTO, value = "park_id")
    Long parkId;

    @TableField("park_name")
    String parkName;

    @TableField("contact")
    String contact;

    @TableField("contact_man")
    String contactMan;

    @TableField("district_code")
    String districtCode;

    @TableField("address")
    String address;

    @TableField("zip_code")
    String zipCode;

    @TableField("website")
    String website;

    @TableField("create_oper_id")
    Long createOperId;

    @TableField("create_time")
    Date createTime;

    @TableField("update_oper_id")
    Long updateOperId;

    @TableField("update_time")
    Date updateTime;

    @TableField("valid_flag")
    Integer validFlag;

    @TableField(exist = false)
    private List<Company> companyList;

}
